
module.exports = app => {

    return class InformationController extends app.Controller {


        /**
         * 咨询详情
         * @returns {Promise<void>}
         */
        async detail() {
            let id = this.ctx.params.id;

            this.app.logger.info(this.ctx.params);

            let information = await this.service.information.detail({ id });

            await this.ctx.render('information/index.js', {
                information
            });
        }



    };
};
